<layout name="layout_common" />
<div class="user_main">
    <!------------------------------------------------------------------------------------------------------------------------->
    <div class="content_box">
        <div class="common_left">
            <p class="tit">登陆</p>
            <form action="{:U('User/Public/doLogin')}" method="post" name="form" id="form">
                <fieldset class="login">
                    <p class="field"><span>用户名</span><input type="text" class="field_text" name="uname" value="" /></p>
                    <p class="field"><span>密码</span><input type="password" class="field_text" name="password" value="" /></p>
                    <p class="field"><input type="submit" class="button" value="登陆" />
                    <input type="button" onclick="window.location.href='{:U('User/Public/reg')}'" class="button" value="注册" /></p>
                </fieldset></form>
        </div>
        <!-------------------------------------------------------------------------------------------------------------->
        <div class="common_right">
            <div class="Cad">{:getBlock('common_right_ad1')}</div>
            <div class="Cad martop10">{:getBlock('common_right_ad2')}</div>
            <div class="CR_title"><i><a href="{:U('Home/Search/index')}">更多&gt;&gt;</a></i><strong>推荐信息</strong></div>
            <ul class="Recommend_information">
    <volist name="rounddz" id="rdz">
        <li>
            <div class="img"><img src="{$rdz.img_url}"></div>
            <dl>
                <dt><a href="{:U('Home/Dazhe/show', array('id'=>$rdz['dazhe_id']))}">{$rdz.title}</a></dt>
                <dd class="s">{$rdz.user_id|getUserName}</dd>
                <dd>时间：{$rdz.create_time|date="Y-m-d", ###}</dd>
            </dl>
        </li>     
    </volist>   
</ul>
        </div>
    </div>
    <!------------------------------------------------------------------------------------------------------------------------->
</div>
<script type="text/javascript">
    $(document).ready(function(e) {
        $("#form").submit(function(e) {
            if ($("input[name=uname]").val() == ""){
                alert("请填写用户名");
                $("input[name=username]").focus();
                return false;
            }
            if ($("input[name=password]").val() == ""){
                alert("请填写密码");
                $("input[name=password]").focus();
                return false;
            }
            return true;
        });
        $("#submit").click(function(){
            $("#form").submit();
            return false;
        });
    });

</script>